//
//  RewardVideoViewController.m
//  TestDemo
//
//  Created by a on 2023/2/9.
//

#import "RewardVideoViewController.h"
#import "RewardVideoAdM.h"

@interface RewardVideoViewController ()

@property (nonatomic,strong)RewardVideoAdM * adM;

@end

@implementation RewardVideoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.adM setupAd];
}

- (RewardVideoAdM *)adM{
    if (_adM  == nil) {
        _adM = [RewardVideoAdM new];
        _adM.viewController = self;
    }
    return _adM;
}

- (IBAction)loadAndShowClicked:(id)sender {
    [self.adM loadAdShow];
}

- (IBAction)loadAdClicked:(id)sender {
    [self.adM loadAd];
}

- (IBAction)showAdClicked:(id)sender {
    [self.adM showAd];
}

@end

